package com.fss.dinfo.service.impl;

import java.util.List;
import com.fss.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fss.dinfo.mapper.DeliveryInfo1Mapper;
import com.fss.dinfo.domain.DeliveryInfo1;
import com.fss.dinfo.service.IDeliveryInfo1Service;

/**
 * 配送信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class DeliveryInfo1ServiceImpl implements IDeliveryInfo1Service 
{
    @Autowired
    private DeliveryInfo1Mapper deliveryInfo1Mapper;

    /**
     * 查询配送信息
     * 
     * @param deliveryId 配送信息主键
     * @return 配送信息
     */
    @Override
    public DeliveryInfo1 selectDeliveryInfo1ByDeliveryId(Long deliveryId)
    {
        return deliveryInfo1Mapper.selectDeliveryInfo1ByDeliveryId(deliveryId);
    }

    /**
     * 查询配送信息列表
     * 
     * @param deliveryInfo1 配送信息
     * @return 配送信息
     */
    @Override
    public List<DeliveryInfo1> selectDeliveryInfo1List(DeliveryInfo1 deliveryInfo1)
    {
        return deliveryInfo1Mapper.selectDeliveryInfo1List(deliveryInfo1);
    }

    /**
     * 新增配送信息
     * 
     * @param deliveryInfo1 配送信息
     * @return 结果
     */
    @Override
    public int insertDeliveryInfo1(DeliveryInfo1 deliveryInfo1)
    {
        deliveryInfo1.setCreateTime(DateUtils.getNowDate());
        return deliveryInfo1Mapper.insertDeliveryInfo1(deliveryInfo1);
    }

    /**
     * 修改配送信息
     * 
     * @param deliveryInfo1 配送信息
     * @return 结果
     */
    @Override
    public int updateDeliveryInfo1(DeliveryInfo1 deliveryInfo1)
    {
        deliveryInfo1.setUpdateTime(DateUtils.getNowDate());
        return deliveryInfo1Mapper.updateDeliveryInfo1(deliveryInfo1);
    }

    /**
     * 批量删除配送信息
     * 
     * @param deliveryIds 需要删除的配送信息主键
     * @return 结果
     */
    @Override
    public int deleteDeliveryInfo1ByDeliveryIds(Long[] deliveryIds)
    {
        return deliveryInfo1Mapper.deleteDeliveryInfo1ByDeliveryIds(deliveryIds);
    }

    /**
     * 删除配送信息信息
     * 
     * @param deliveryId 配送信息主键
     * @return 结果
     */
    @Override
    public int deleteDeliveryInfo1ByDeliveryId(Long deliveryId)
    {
        return deliveryInfo1Mapper.deleteDeliveryInfo1ByDeliveryId(deliveryId);
    }
}
